<?php

require_once dirname(__FILE__).'/../lib/linksGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/linksGeneratorHelper.class.php';

/**
 * links actions.
 *
 * @package    nutrition
 * @subpackage links
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class linksActions extends autoLinksActions
{
   /**
   * 执行单一激活任务
   * 
   * @param sfWebRequest $request
   */  
  public function executeListActive(sfWebRequest $request)
  {
    $news = $this->getRoute()->getObject();
    $news->active(true);    
    $this->getUser()->setFlash('notice', '所选的一条友情链接被成功激活');
    $this->redirect('@links');
  }    
}
